<div class="panel panel-primary">
    <div class="panel-heading">Tài khoản</div>
<!--    <div class="panel-body"></div>-->
    <div class="list-group medium">
        <?php if($this->user):?>
        <a class="list-group-item <?php if($this->action->id == 'update'):?>active primary<?php endif?>" href="<?php echo $this->createUrl('/user/page/update')?>">
            <i class="fa fa-thumbs-o-up fa-border fa-fw small"></i> Cập nhật tài khoản</a>
        <a class="list-group-item <?php if($this->action->id == 'managePhone'):?>active primary<?php endif?>" href="<?php echo $this->createUrl('/user/page/managePhone')?>">
            <i class="fa fa-phone fa-border fa-fw small"></i> Quản lý SĐT</a>
        <a class="list-group-item <?php if($this->action->id == 'manageEmail'):?>active primary<?php endif?>" href="<?php echo $this->createUrl('/user/page/manageEmail')?>">
            <i class="fa fa-envelope-o fa-border fa-fw small"></i> Quản lý Email & Openid</a>
        <a class="list-group-item <?php if($this->action->id == 'password'):?>active primary<?php endif?>" href="<?php echo $this->createUrl('/user/page/password')?>">
            <i class="fa fa-ellipsis-h fa-border fa-fw small"></i> <?php echo $this->user->password ? 'Đổi mật khẩu' : 'Tạo mật khẩu'?></a>
        <a class="list-group-item <?php if($this->action->id == 'verifyPhone'):?>active primary<?php endif?>" href="<?php echo $this->createUrl('/user/page/VerifyPhone')?>">
            <i class="fa fa-phone-square fa-border fa-fw small"></i> Xác nhận SĐT</a>
        <a class="list-group-item text-right" href="<?php echo $this->createUrl('/user/page/logout')?>">
            Thoát <i class="fa fa-sign-out fa-border fa-fw small text-danger"></i></a>
        <?php else:?>
        <a class="list-group-item <?php if($this->action->id == 'login'):?>active primary<?php endif?>" href="<?php echo $this->createUrl('/user/page/login')?>">
            <i class="fa fa-sign-in fa-border fa-fw small"></i> Đăng nhập</a>
        <a class="list-group-item <?php if($this->action->id == 'create'):?>active primary<?php endif?>" href="<?php echo $this->createUrl('/user/page/create')?>">
            <i class="fa fa-pencil-square-o fa-border fa-fw small"></i> Đăng ký</a>
        <a class="list-group-item <?php if($this->action->id == 'forgot'):?>active primary<?php endif?>" href="<?php echo $this->createUrl('/user/page/forgot')?>">
            <i class="fa fa-retweet fa-border fa-fw small"></i> Quên mật khẩu</a>
        <a class="list-group-item <?php if($this->action->id == 'verifyPhone'):?>active primary<?php endif?>" href="<?php echo $this->createUrl('/user/page/VerifyPhone')?>">
            <i class="fa fa-phone-square fa-border fa-fw small"></i> Xác nhận SĐT</a>
        <?php endif?>
    </div>
</div>
